'use strict';
/**
 * Created by FreezeSoul on 2015/10/12.
 */
define([
        'angular',
        'app/modules/editor/define'
    ],
    function(angular) {
        angular.module('ad.editor')
            .directive('preventRightClick', [
                function() {
                    return {
                        restrict: 'A',
                        link: function($scope, $ele) {
                            $ele.bind("contextmenu", function(e) {
                                e.preventDefault();
                            });
                        }
                    };
                }
            ]);
    });
